cmake_minimum_required(VERSION 3.00)

project(PrjMain)

string(REPLACE ":" "\;" CM_LD_LIB_PATH "$ENV{LD_LIBRARY_PATH}")
# message(${CM_LD_LIB_PATH})

set(ROOT_DIR ${CMAKE_SOURCE_DIR})
# message(STATUS "${ROOT_DIR}")

aux_source_directory(${ROOT_DIR}/Codes SRC_ROOT)

add_executable(${PROJECT_NAME} ${SRC_ROOT})
set_target_properties(${PROJECT_NAME} PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${ROOT_DIR}/bin/")
target_link_directories(${PROJECT_NAME} PRIVATE ${CM_LD_LIB_PATH})
target_link_libraries(${PROJECT_NAME} -lcpprest -lcrypto)